<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>05.对象的静态方法.html</title>
</head>

<body>
    <script>
        console.dir(Object);
        const stu01 = {
            name:'小明',
            age:18

        }
        const stu02 = {
            name:'小红',
            address:"南京市"
        }
        const stu03 = Object.assign(stu01,stu02,{gender:"女"})
        console.log(stu03);
        const keys = Object.keys(stu03)
        console.log(keys);
        const values = Object.values(stu03)
        console.log(values);
        const entries = Object.entries(stu03)
        console.log(entries);
        entries.forEach( ([key,value]) => {
             console.log(key,value);
        })
        console.log("===============");
        console.dir([1,2,3]);
        for(let index of [1,2,3]) {
            console.log(index);
        }
    </script>

</body>

</html>